{include file='../templates/header.tpl'}
<article class="article-container">
	<div class="row-fluid">
		<div class="article-content">
			<header>
				<div>
					<ul class="breadcrumb">
						<li>
							<a href="#"><i class="bo-icon-home"></i>{$nota->getSeccionNombre()}</a>
							<i class="icon-caret-right icon-fixed-width">
							</i>
						</li>
						<li>
							<a href="#" class="active">{$nota->getTitulo()|html_entity_decode:$smarty.const.ENT_QUOTES:'utf-8'}</a>
						</li>
					</ul>
				</div>
				<div class="figure-container">
                    <!-- si tiene audio -->
                    {if ($nota->getAudioId() != 0 && $nota->getAudioPosition() == 'T')}
                        <figure class="featured-post-figure">
                            {$audioNota->getLinkText()}
                            <figcaption>
                                {$audioNota->getTitulo()}
                            </figcaption>
                        </figure>
                    {/if}
                    <!-- si tiene video -->
                    {if ($nota->getVideoId() != 0 && $nota->getVideoPosition() == 'T')}
                        <figure class="featured-post-figure">
                            <!-- Just Change Code -->
                            <iframe class="youtube-player" type="text/html" width="100%" height="385" src="http://www.youtube.com/embed/{$videoNota->getVideoNumber()}?wmode=transparent&amp;wmode=opaque" allowfullscreen frameborder="0">
                            </iframe>
                            <figcaption>
                                {$videoNota->getTitulo()}
                            </figcaption>
                        </figure>
                    {/if}
                    <!-- si tiene galeria -->
                    {if ($nota->getAlbumId() != 0 && $nota->getAlbumPosition() == 'T')}
                        <figure class="featured-post-figure">
                            <ul class="posts-in-images clearfix">
                                {foreach from=$albumNota->getFotoPrincipal() item=a}
                                    <li rel="tooltip" data-toggle="tooltip" data-placement="top" data-original-title="{$a->getTitulo()}" title="{$a->getTitulo()}">
                                        <a class="gallery" href="/galerias/{$a->getFoto()}">
                                            <div class="thumb-effect">
                                                <div class="mask"></div>
                                                <img src="/framework/timthumb.php?src=/galerias/{$a->getFoto()}&amp;w=80&amp;h=75" />
                                            </div>
                                        </a>
                                    </li>
                                {/foreach}
                            </ul>
                            <figcaption>{$albumNota->getTitulo()}{if $albumNota->getDescripcion() != ""}: {$albumNota->getDescripcion()}{/if}
                            </figcaption>
                        </figure>
                    {/if}

					<figure class="featured-post-figure">
						{if $nota->getImagen() != ""}
                            <img src="/framework/timthumb.php?src=/fotos/{$nota->getImagen()}&amp;w=604&amp;h=345" alt="Post With Image" />
                            <figcaption>
                                {$nota->getPieFoto()}
                            </figcaption>
                        {/if}
					</figure>
				</div>
				<h1>
					{$nota->getTitulo()|html_entity_decode:$smarty.const.ENT_QUOTES:'utf-8'}
				</h1>
				<div class="post-info">
					<div class="post-meta">
						<ul>
							<li title="Category">
								<a href="#"><i class="bo-icon-asterisk"></i>{$nota->getSeccionNombre()}</a>
							</li>
							<li title="Publish Time">
								<i class="bo-icon-time">
								</i>
								{$nota->getFechaPublicacion()|date_format: "%d-%m-%Y"}, {$nota->getHoraPublicacion()|date_format: "%H:%M"}
							</li>
							<li>
								<a href="#" title="No. de Comentarios"><i class="bo-icon-comment"></i>{$nota->getNumComments()}</a>
							</li>
						</ul>
					</div>
				</div>
			</header>
											<span class="clearfix">
											</span>
			<div class="post-entry">
				<blockquote>
					<p>
						{$nota->getDescripcion()|html_entity_decode:$smarty.const.ENT_QUOTES:'utf-8'}
					</p>
				</blockquote>

				{$nota->getTexto()|html_entity_decode:$smarty.const.ENT_QUOTES:'utf-8'}
			</div>
            <div class="figure-container">
                <!-- si tiene audio -->
                {if ($nota->getAudioId() != 0 && $nota->getAudioPosition() == 'B')}
                    <br>
                    <figure class="featured-post-figure">
                        {$audioNota->getLinkText()}
                        <figcaption>
                            {$audioNota->getTitulo()}
                        </figcaption>
                    </figure>
                {/if}
                <!-- si tiene video -->
                {if ($nota->getVideoId() != 0 && $nota->getVideoPosition() == 'B')}
                    <br>
                    <figure class="featured-post-figure">
                        <!-- Just Change Code -->
                        <iframe class="youtube-player" type="text/html" width="100%" height="385" src="http://www.youtube.com/embed/{$videoNota->getVideoNumber()}?wmode=transparent&amp;wmode=opaque" allowfullscreen frameborder="0">
                        </iframe>
                        <figcaption>
                            {$videoNota->getTitulo()}
                        </figcaption>
                    </figure>
                {/if}
                <!-- si tiene galeria -->
                {if ($nota->getAlbumId() != 0 && $nota->getAlbumPosition() == 'B')}
                    <br>
                    <figure class="featured-post-figure">
                        <ul class="posts-in-images clearfix">
                            {foreach from=$albumNota->getFotoPrincipal() item=a}
                                <li rel="tooltip" data-toggle="tooltip" data-placement="top" data-original-title="{$a->getTitulo()}" title="{$a->getTitulo()}">
                                    <a class="gallery" href="/galerias/{$a->getFoto()}">
                                        <div class="thumb-effect">
                                            <div class="mask"></div>
                                            <img src="/framework/timthumb.php?src=/galerias/{$a->getFoto()}&amp;w=80&amp;h=75" />
                                        </div>
                                    </a>
                                </li>
                            {/foreach}
                        </ul>
                        <figcaption>{$albumNota->getTitulo()}{if $albumNota->getDescripcion() != ""}: {$albumNota->getDescripcion()}{/if}
                        </figcaption>
                    </figure>
                {/if}
            </div>
			<div class="clearfix">
			</div>
			<div class="row-fluid social-share-footer">
												<span class="share-icon icon-caret-right">
												</span>
				<div class="share-icons">
					<!-- Add Social Share Buttons Here -->
					<!-- AddThis Button BEGIN -->
													<span class='st_facebook_hcount' displayText='Facebook'>
													</span>
													<span class='st_googleplus_hcount' displayText='Google +'>
													</span>
													<span class='st_twitter_hcount' displayText='Tweet'>
													</span>
													<span class='st_linkedin_hcount' displayText='LinkedIn'>
													</span>
													<span class='st_email_hcount' displayText='Email'>
													</span>
					{literal}
					<script type="text/javascript">
						var switchTo5x=true;
					</script>
					<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js">
					</script>
					<script type="text/javascript">stLight.options({publisher:'470d9163-7a41-4118-9cf9-f1d9f90fbd67'});</script>
					{/literal}
					<!-- AddThis Button END -->
				</div>
			</div>
		</div>
		<!-- Post Footer Start from Related News to Comments Box -->
		<footer>
			{include file='../templates/post-comments.tpl'}
		</footer>
	</div>
</article>
</div>
{include file='../templates/footer.tpl'}
